package com.sip.stream.gbstack.Model;

import com.blankj.utilcode.constant.TimeConstants;
import com.google.gson.annotations.SerializedName;
import org.json.JSONException;
import org.json.JSONObject;

public class GS28181PosNotifyConfig {
    @SerializedName("czGBCode")
    private String czGBCode;

    @SerializedName("expireTime")
    private long expireTime = 0;

    @SerializedName("iExpires")
    private int iExpires;

    @SerializedName("iInterval")
    private int iInterval;

    @SerializedName("iSubID")
    private int iSubID;

    public GS28181PosNotifyConfig(String config) {
        JSONObject jSONObject;
        this.iInterval = 1;
        this.iExpires = TimeConstants.MIN;
        try {
            jSONObject = new JSONObject(config);
        } catch (JSONException e) {
            e.printStackTrace();
            jSONObject = null;
        }
        try {
            this.czGBCode = jSONObject.getString("czGBCode");
        } catch (JSONException e2) {
            e2.printStackTrace();
        }
        try {
            this.iSubID = jSONObject.getInt("iSubID");
        } catch (JSONException e3) {
            e3.printStackTrace();
        }
        try {
            this.iInterval = jSONObject.getInt("iInterval");
        } catch (JSONException e4) {
            e4.printStackTrace();
        }
        try {
            this.iExpires = jSONObject.getInt("iExpires");
        } catch (JSONException e5) {
            e5.printStackTrace();
        }
    }

    public String getCzGBCode() {
        return this.czGBCode;
    }

    public int getiInterval() {
        return this.iInterval;
    }

    public int getiSubID() {
        return this.iSubID;
    }

    public long getExpireTime() {
        return this.expireTime;
    }

    public void setExpireTime(long expireTime) {
        this.expireTime = expireTime;
    }

    public int getiExpires() {
        return this.iExpires;
    }

    public void setiExpires(int iExpires) {
        this.iExpires = iExpires;
    }

    public String toString() {
        return "GS28181PosNotifyConfig{czGBCode='" + this.czGBCode + "', iInterval=" + this.iInterval + ", iSubID=" + this.iSubID + ", iExpires=" + this.iExpires + ", expireTime=" + this.expireTime + '}';
    }
}
